﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FigureDraw
{
    public class LineShape : CommonShape
    {
        
        public LineShape(StorageDevice sd):base(sd)
        {
        }
        public override void DrawToDevice(Form form)
        {

            this.KhoiTaoTruocKhiVe();
            int x1 = BeginPoint.X;
            int y1 = BeginPoint.Y;

            int x2 = EndPoint.X;
            int y2 = EndPoint.Y;
            this.StorageDevice.drawLine(x1, y1, x2, y2);
            
        }
    }
}
